#pragma once

#include "EngineObject.h"
#include "EnginePointer.h"
#include "Material.h"

#define MAX_SUBSET_NAME 100

class MeshSubset : public EngineObject
{
public:
	MeshSubset(char* name, EnginePointer<Material>& material, UINT primitiveType,
		       UINT64 indexStart, UINT64 indexCount, UINT64 vertexStart, UINT64 vertexCount);

	UINT64 getIndexStart();
	UINT64 getIndexCount();
	UINT64 getVertexStart();
	UINT64 getVertexCount();
	EnginePointer<Material> getMaterial();
	AUTO_SIZE;
private:
	char name[MAX_SUBSET_NAME];
    EnginePointer<Material> material;
    UINT primitiveType;
    UINT64 indexStart;
    UINT64 indexCount;
    UINT64 vertexStart;
    UINT64 vertexCount;
};
